<ul>
    @forelse($needs_list as $key=>$value)
    	@if($key<5)
        <li>
            <a href="#">
                <span class="time">{{$value['demandDate']}}</span>
                <span class="dot">{{$value['title']}}</span>
            </a>
        </li>
        @endif
    @empty

    @endforelse
</ul>
